package com.capgemini.simpleappblanche.utils;

import java.util.ArrayList;
import java.util.List;

import org.dozer.DozerBeanMapper;

public class AppMapperImpl extends DozerBeanMapper implements AppMapper{

	@Override
	public <T> List<T> mapList(List<?> source, Class<T> destinationClass) {
		final List<T> result = new ArrayList<T>();
		
        if(source!=null){
	            for(Object item : source){
	            	result.add(this.map(item, destinationClass));
	            }
	        }
	        return result;
	        
	}

}
